﻿using System;
using System.Runtime.Serialization;
using Battle.Net.Infrastructure;

namespace Battle.Net.Model
{
    [DataContract]
    public class AuctionFile
    {
        [DataMember(Name = "url")]
        internal string url
        {
            get { return Url.ToString(); }
            set { Url = new Uri(value);}
        }

        [DataMember(Name = "lastModified")]
        internal string LastModifiedInternal
        {
            set { LastModified = value.FromUnixTimestamp(); }
            get { return LastModified.Ticks.ToString(); }
        }

        public DateTime LastModified { get; set; }

        public Uri Url { get; set; }



    }
}
